package common;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Vector;

public class Topic implements Serializable {
    private String title;
    private Vector<String> question;
    private String pulishdate;
    private String deaddate;
    private String pulishtime;
    private String deadtime;
    private Course course;
    private String topicid;
    private Homework homework;
    private HashMap<User,Homework> homeworks=new HashMap<>();
    public Topic(String title, Vector<String> question, String pulishdate, String deaddate, String pulishtime, String deadtime) {
        this.title = title;
        this.question = question;
        this.pulishdate = pulishdate;
        this.deaddate = deaddate;
        this.pulishtime = pulishtime;
        this.deadtime = deadtime;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Vector<String> getQuestion() {
        return question;
    }

    public void setQuestion(Vector<String> question) {
        this.question = question;
    }

    public String getPulishdate() {
        return pulishdate;
    }

    public void setPulishdate(String pulishdate) {
        this.pulishdate = pulishdate;
    }

    public String getDeaddate() {
        return deaddate;
    }

    public void setDeaddate(String deaddate) {
        this.deaddate = deaddate;
    }

    public String getPulishtime() {
        return pulishtime;
    }

    public void setPulishtime(String pulishtime) {
        this.pulishtime = pulishtime;
    }

    public String getDeadtime() {
        return deadtime;
    }

    public void setDeadtime(String deadtime) {
        this.deadtime = deadtime;
    }

    public String getTopicid() {
        return topicid;
    }

    public void setTopicid(String topicid) {
        this.topicid = topicid;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public Homework getHomework() {
        return homework;
    }

    public void setHomework(Homework homework) {
        this.homework = homework;
    }

    public HashMap<User, Homework> getHomeworks() {
        return homeworks;
    }

    public void setHomeworks(HashMap<User, Homework> homeworks) {
        this.homeworks = homeworks;
    }
}
